#include <algorithm>
#include <fstream>
#include <functional>
#include <iostream>
#include <iterator>
#include <numeric>
#include <string>
#include <vector>

using namespace std;
using namespace placeholders; //占位符的命名空间

int main(int argc, char **argv) {
  int a[5] = {1, 2, 3, 4, 5};
  vector<int> day1(a, a + 5);
  //普通迭代器的--是向后移动
  for (auto it1 = day1.end(); it1 != day1.begin(); --it1) {
    cout << *(it1 - 1) << " ";
  }
  return 0;
}